package com.mayisoftware.mayioa.business.plan.impl.dao;

import com.mayisoftware.mayioa.business.plan.api.domain.PlanCustom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PlanCustomMapper {
    /**
     * 根据条件查询计划评价列表
     *
     * @param planCustom 评价条件
     * @return
     */
    public List<PlanCustom> selectPlanCusList(PlanCustom planCustom);

    /**
     * 查询当前计划评价列表
     * @param planCfgId
     * @return
     */
    public List<PlanCustom> selectPlanCusListByPlanId(@Param("planCfgId")Long planCfgId);

    /**
     * 根据id查询计划评价
     *
     * @param planCusId 评价id
     * @return
     */
    public PlanCustom selectPlanCusById(Long planCusId);

    /**
     * 插入计划评价
     *
     * @param planCustom 计划评价
     * @return
     */
    public int insertPlanCus(PlanCustom planCustom);

    /**
     * 更新计划评价
     *
     * @param planCustom 计划评价
     * @return
     */
    public int updatePlanCus(PlanCustom planCustom);

    /**
     * 删除计划评价
     *
     * @param ids id：以,分割
     * @return
     */

    public int deletePlanCusIds(Long[] ids);
}
